﻿using HECore.Common.Entitys;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HECore.Tenant.Repository.Entites
{
    /// <summary>
    /// 员工角色表
    /// </summary>
    [Comment("员工角色表")]
    public class EmployeeRole : EmployeeDeletionAudited
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [Comment("主键ID")]
        [Column(Order = 0)]
        public Guid Id { get; set; }

        /// <summary>
        /// 员工Id
        /// </summary>
        [Comment("员工Id")]
        [Column(Order = 1)]
        public Guid EmployeeId { get; set; }

        /// <summary>
        /// 角色Id
        /// </summary>
        [Comment("角色Id")]
        [Column(Order = 2)]
        public Guid RoleId { get; set; }
    }
}
